local sk__danxin = fk.CreateSkill {

  name = "sk__danxin",

  tags = {  },

}



sk__danxin:addEffect(fk.Damaged, {
  name = "sk__danxin",
  anim_type = "masochism",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(sk__danxin.name)
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    player:drawCards(2, sk__danxin.name)
    if not player.dead and not player:isKongcheng() then
      room:askForUseActiveSkill(player, "sk__jiaozhao", "#sk__jiaozhao", true)
    end
  end,
})

return sk__danxin